<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
	<head>
		<title>申请书填写</title>
	</head>
	<body>
		<style type="text/css">
		.tr-thead th {text-align:left;}
		td{line-height:25px;}
		.required{color:red;}
		.icon-checked{display:inline;background-image:url(../images/checked.png);background-repeat:no-repeat;padding:0px 0 0px 16px;}
		</style>
		<script type="text/javascript">
			var defaultOption = '<option value="0">请选择</option>';
			var dropDownData = eval('('+'<%=pageContext.getServletContext().getAttribute("pcdJson")%>'+')');
		</script>
		<html:form action="/skositedo/apply.do" styleId="applicationForm" method="POST">
			<input type="hidden" name="method" class="method" value="submit" />
			<html:hidden property="id" styleId="applyId" />
			<html:hidden property="regionId" styleId="regionId" />
			<html:hidden property="step" styleId="step" />
			<html:hidden property="flag" value="save" styleId="flag" />
			<div id="step1">
				<table class="table-layout">
					<tr class="tr-thead">
						<th>
							二、 基本信息
						</th>
					</tr>
					<tr class="tr-even">
						<td>
							申请公司全称：
							<html:text property="corp" style="width:500px" />
							&nbsp;&nbsp;<span class="required">*</span>
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							公司法人代表：
							<html:text property="legalPerson" />
							&nbsp;&nbsp;手机&nbsp;&nbsp;
							<html:text property="legalPersonCellphone" />
							&nbsp;&nbsp;电子邮箱：&nbsp;&nbsp;
							<html:text property="legalPersonEmail" />
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							董事长：
							<html:text property="owner1" />
							&nbsp;&nbsp;手机&nbsp;&nbsp;
							<html:text property="cellphone1" />
							&nbsp;&nbsp;电子邮箱：&nbsp;&nbsp;
							<html:text property="email1" />
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							公司经济性质：
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							<html:radio property="economicNatureCode" value="1" />
							国营&nbsp;&nbsp;
							<html:radio property="economicNatureCode" value="2" />
							集体&nbsp;&nbsp;
							<html:radio property="economicNatureCode" value="3" />
							私营&nbsp;&nbsp;
							<html:radio property="economicNatureCode" value="4" />
							中外合资&nbsp;&nbsp;
							<html:radio property="economicNatureCode" value="5" />
							其它，请说明&nbsp;&nbsp;
							<html:text property="economicNatureOthers" style="width:500px" />
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							主营业务：
							<html:text property="mainBusiness" style="width:500px" />
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							注册地址：<span id="dropContainer_0"> <html:hidden property="registerProvinceId" /> <select id="drop_0"></select> </span>省&nbsp;&nbsp; <span id="dropContainer_1"> <html:hidden property="registerCityId" /> <select id="drop_1"></select> </span>市&nbsp;&nbsp;
							<span id="dropContainer_2"> <html:hidden property="registerDistrictId" /> <select id="drop_2"></select> </span>区/县&nbsp;&nbsp;
							<html:text property="registerAddress" style="width:500px" />
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							注册时间：
							<html:text property="registerYear" />
							&nbsp;&nbsp;年&nbsp;&nbsp;
							<html:text property="registerMonth" />
							&nbsp;&nbsp;月
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							注册资本：
							<html:text property="registerCapital" />
							&nbsp;&nbsp;万元
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							公司主页：
							<html:text property="website" />
							（可选）
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							联系人/项目负责人：
							<html:text property="contactor" />
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							电话：
							<html:text property="contactTel" />
							&nbsp;&nbsp;手机：
							<html:text property="contactCellphone" />
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							传真：
							<html:text property="contactFax" />
							&nbsp;&nbsp;电子邮箱：
							<html:text property="contactEmail" />
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							通讯地址： <span id="dropContainer2_0"> <html:hidden property="contactProvinceId" /> <select id="drop2_0"></select> </span>省&nbsp;&nbsp; <span id="dropContainer2_1"> <html:hidden property="contactCityId" /> <select id="drop2_1"></select> </span>市&nbsp;&nbsp;
							<span id="dropContainer2_2"> <html:hidden property="contactDistrictId" /> <select id="drop2_2"></select> </span>区/县&nbsp;&nbsp;
							<html:text property="contactAddress" style="width:500px" />
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							邮编：
							<html:text property="postcode" />
						</td>
					</tr>
				</table>
			</div>
			<div id="step2">
				<table class="table-layout">
					<tr class="tr-thead">
						<th>
							三、 股权结构
						</th>
					</tr>
					<tr class="tr-even">
						<td>
							如果申请公司是国有独资公司，请填写上级单位：
							<html:text property="parentCorp" style="width:500px" />
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							如果申请公司是有限责任公司或股份有限公司，请填写所有股东的相关信息：
						</td>
					</tr>
					<tr class="tr-even">
						<td id="tdShareholder1">
							<table class="table-layout" id="tableShareholder1">
								<thead>
									<tr class="tr-even">
										<td>
											股东
										</td>
										<td>
											投入金额（万元）
										</td>
										<td>
											所占比例（%）
										</td>
										<th>
											操作
										</th>
									</tr>
								</thead>
								<tbody id="tbodyShareholder1"></tbody>
							</table>
							<br />
							<div class="center-opertion">
								<input type="button" value="添加" onclick="createShareholder(1);" />
							</div>
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							如果申请公司的第一股东为企业法人，请填写以下企业法人的信息：
						</td>
					</tr>
					<tr class="tr-even">
						<td id="tdShareholder2">
							<table class="table-layout" id="tableShareholder2">
								<thead>
									<tr class="tr-even">
										<td>
											股东
										</td>
										<td>
											投入金额（万元）
										</td>
										<td>
											所占比例（%）
										</td>
										<th>
											操作
										</th>
									</tr>
								</thead>
								<tbody id="tbodyShareholder2"></tbody>
							</table>
							<br />
							<div class="center-opertion">
								<input type="button" value="添加" onclick="createShareholder(2);" />
							</div>
						</td>
					</tr>
				</table>
			</div>
			<div id="step3">
				<table class="table-layout">
					<tr class="tr-thead">
						<th>
							四、 财务状况
						</th>
					</tr>
					<tr class="tr-even">
						<td>
							如无特别注明，请根据财务报表填写截至上一年度末的数据：
						</td>
					</tr>
				</table>
				<table class="table-layout">
					<tr class="tr-odd">
						<td rowspan="12">
							资产负债情况
						</td>
						<td>
							资产总计 ：
						</td>
						<td colspan="3">
							<html:text property="totalAssets" />
							万元
						</td>
					</tr>
					<tr class="tr-even">
						<td style="width:165px;">
							流动资产合计：
						</td>
						<td style="width:165px;">
							<html:text property="flowedAssets" />
							万元
						</td>
						<td style="width:165px;">
							长期资产合计*：
						</td>
						<td style="width:210px;">
							<html:text property="longAssets" />
							万元
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							期初存货：
						</td>
						<td>
							<html:text property="initialStockVacancy" />
							万元
						</td>
						<td>
							期末存货：
						</td>
						<td>
							<html:text property="finalStockVacancy" />
							万元
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							应收帐款：
						</td>
						<td>
							<html:text property="receivables" />
							万元
						</td>
						<td>
							其他应收款：
						</td>
						<td>
							<html:text property="otherReceivables" />
							万元
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							负债合计：
						</td>
						<td colspan="3">
							<html:text property="totalDebts" />
							万元
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							流动负债合计：
						</td>
						<td>
							<html:text property="flowedDebts" />
							万元
						</td>
						<td>
							长期负债合计：
						</td>
						<td>
							<html:text property="longDebts" />
							万元
						</td>
					</tr>
					<tr class="tr-odd">
						<td rowspan="3">
							前三大债务人：
						</td>
						<td colspan="2">
							1.
							<html:text property="debtor1" style="width:300px" />
						</td>
						<td>
							<html:text property="receivables1" />
							万元应收账款
						</td>
					</tr>
					<tr class="tr-even">
						<td colspan="2">
							2.
							<html:text property="debtor2" style="width:300px" />
						</td>
						<td>
							<html:text property="receivables2" />
							万元应收账款
						</td>
					</tr>
					<tr class="tr-odd">
						<td colspan="2">
							3.
							<html:text property="debtor3" style="width:300px" />
						</td>

						<td>
							<html:text property="receivables3" />
							万元应收账款
						</td>
					</tr>
					<tr class="tr-even">
						<td rowspan="3">
							前三大债权人：
						</td>
						<td colspan="2">
							1.
							<html:text property="creditor1" style="width:300px" />
						</td>
						<td>
							<html:text property="debt1" />
							万元应付账款
						</td>
					</tr>
					<tr class="tr-odd">
						<td colspan="2">
							2.
							<html:text property="creditor2" style="width:300px" />
						</td>
						<td>
							<html:text property="debt2" />
							万元应付账款
						</td>
					</tr>
					<tr class="tr-even">
						<td colspan="2">
							3.
							<html:text property="creditor3" style="width:300px" />
						</td>
						<td>
							<html:text property="debt3" />
							万元应付账款
						</td>
					</tr>
					<tr class="tr-odd">
						<td rowspan="4">
							利润情况
						</td>
						<td>
							主营业务收入：
						</td>
						<td>
							<html:text property="mainBusinessTurnover" />
							万元
						</td>
						<td>
							其他收入**：
						</td>
						<td>
							<html:text property="otherBusinessTurnover" />
							万元
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							主营业务成本：
						</td>
						<td>
							<html:text property="mainBusinessCost" />
							万元
						</td>
						<td>
							营业费用：
						</td>
						<td>
							<html:text property="operationCost" />
							万元
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							管理费用：
						</td>
						<td>
							<html:text property="managementCost" />
							万元
						</td>
						<td>
							财务费用：
						</td>
						<td>
							<html:text property="financeCost" />
							万元
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							净利润：
						</td>
						<td colspan="3">
							<html:text property="netProfit" />
							万元
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							现金流量情况
						</td>
						<td>
							投资性现金流出量：
						</td>
						<td colspan="3">
							<html:text property="cashFlowInvestment" />
							万元
						</td>
					</tr>
					<tr class="tr-even">
						<td rowspan="7">
							资金信用情况
							<br />
							（至上月末）
						</td>
						<td>
							可用货币资金：
						</td>
						<td colspan="3">
							<html:text property="availableCash" />
							万元
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							其中自有资金：
						</td>
						<td>
							<html:text property="ownCash" />
							万元
						</td>
						<td>
							融资 ：
						</td>
						<td>
							<html:text property="financingCash" />
							万元
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							主要融资方式：
						</td>
						<td colspan="3">
							<html:radio property="financingMethodCode" value="1" />
							银行贷款&nbsp;&nbsp;
							<html:radio property="financingMethodCode" value="2" />
							公司拆借&nbsp;&nbsp;
							<html:radio property="financingMethodCode" value="3" />
							证券&nbsp;&nbsp;
							<html:radio property="financingMethodCode" value="4" />
							其他，请说明&nbsp;&nbsp;
							<html:text property="financingMethodOthers" style="width:500px" />
						</td>
					</tr>
					<tr class="tr-odd">
						<td rowspan="4">
							主要往来银行：
						</td>
						<td colspan="2">
							银行名称
						</td>
						<td>
							是否为开户行
						</td>
					</tr>
					<tr class="tr-even">
						<td colspan="2">
							1.
							<html:text property="bank1" />
						</td>
						<td>
							<html:radio property="isOpenBank1" value="1" />
							是&nbsp;&nbsp;
							<html:radio property="isOpenBank1" value="0" />
							否
						</td>
					</tr>
					<tr class="tr-odd">
						<td colspan="2">
							2.
							<html:text property="bank2" />
						</td>
						<td>
							<html:radio property="isOpenBank2" value="1" />
							是&nbsp;&nbsp;
							<html:radio property="isOpenBank2" value="0" />
							否
						</td>
					</tr>
					<tr class="tr-even">
						<td colspan="2">
							3.
							<html:text property="bank3" />
						</td>
						<td>
							<html:radio property="isOpenBank3" value="1" />
							是&nbsp;&nbsp;
							<html:radio property="isOpenBank3" value="0" />
							否
						</td>
					</tr>
					<tr class="tr-odd">
						<td rowspan="10">
							银行信用情况
						</td>
						<td>
							银行授信
						</td>
						<td colspan="3">
							<html:radio property="isAuthentic" value="1" />
							已获得&nbsp;&nbsp;
							<html:radio property="isAuthentic" value="0" />
							未获得
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							银行名称
						</td>
						<td>
							授信额度
						</td>
						<td>
							可用余额
						</td>
						<td>
							授信期限
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							1.
							<html:text property="authenticBank1" />
						</td>
						<td>
							<html:text property="creditLine1" />
							万元
						</td>
						<td>
							<html:text property="creditBalance1" />
							万元
						</td>
						<td>
							<html:text property="authenticTerm1" />
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							2.
							<html:text property="authenticBank2" />
						</td>
						<td>
							<html:text property="creditLine2" />
							万元
						</td>
						<td>
							<html:text property="creditBalance2" />
							万元
						</td>
						<td>
							<html:text property="authenticTerm2" />
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							3.
							<html:text property="authenticBank3" />
						</td>
						<td>
							<html:text property="creditLine3" />
							万元
						</td>
						<td>
							<html:text property="creditBalance3" />
							万元
						</td>
						<td>
							<html:text property="authenticTerm3" />
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							银行资信等级
						</td>
						<td colspan="3">
							<html:radio property="hasQualificationGrade" value="1" />
							已获得&nbsp;&nbsp;
							<html:radio property="hasQualificationGrade" value="0" />
							未获得
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							银行名称
						</td>
						<td colspan="2">
							资信等级
						</td>
						<td>
							资信期限
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							1.
							<html:text property="qualificationBank1" />
						</td>
						<td colspan="2">
							<html:text property="qualificationGrade1" />
						</td>
						<td>
							<html:text property="qualificationTerm1" />
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							2.
							<html:text property="qualificationBank2" />
						</td>
						<td colspan="2">
							<html:text property="qualificationGrade2" />
						</td>
						<td>
							<html:text property="qualificationTerm2" />
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							3.
							<html:text property="qualificationBank3" />
						</td>
						<td colspan="2">
							<html:text property="qualificationGrade3" />
						</td>
						<td>
							<html:text property="qualificationTerm3" />
						</td>
					</tr>
				</table>
				<table class="table-layout">
					<tr class="tr-odd">
						<td>
							注：* 长期资产包括长期投资、固定资产、无形及其他资产；
							<br />
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;** 其他收入包括其他业务收入及营业外收入。
						</td>
					</tr>
				</table>
			</div>
			<div id="step4">
				<table class="table-layout">
					<tr class="tr-thead">
						<th>
							五、 申请者背景状况
						</th>
					</tr>
					<tr class="tr-even">
						<td>
							如果申请公司或相关公司（母公司、分/子公司及关联公司）具备汽车行业从业经历，请提供以下信息：
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							截至上年度（20
							<html:text property="shopLastYear1" style="width:60px;" />
							年）年底，所拥有的小轿车销售/服务店共
							<html:text property="shopAmount" style="width:60px;" />
							家，其中4S店共
							<html:text property="shop4sAmount" style="width:60px;" />
							家；
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							注：本评审模型中所指的小轿车销售/服务店均指上一自然年度内，为投资方所控制的，可以纳入投资方合并财务报表的，独立法人的小型乘用车(除微面)销售/服务店。尚未开始正式运营、已关停并转或即将关停并转的小轿车销售/服务店不计算在内。小轿车销售/服务店包含品牌4S店、综合品牌销售店及综合品牌服务站/修理厂。
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							上年度（20
							<html:text property="shopLastYear2" style="width:60px;" />
							年）集团及业绩表现排名前三的汽车销售/服务店的经营状况
						</td>
					</tr>
				</table>
				<table class="table-layout">
					<tr class="tr-even">
						<td width="150">
							项目
						</td>
						<td>
							集团总体
						</td>
						<td>
							<p>
								排名第一
								<br />
								店名：
								<html:text property="shop1" />
								<br />
								品牌：
								<html:text property="shopBrand1" />
							</p>
						</td>
						<td>
							<p>
								排名第二
								<br>
								店名：
								<html:text property="shop2" />
								<br>

								品牌：
								<html:text property="shopBrand2" />
							</p>
						</td>
						<td>
							<p>
								排名第三
								<br>
								店名：
								<html:text property="shop3" />
								<br>
								品牌：
								<html:text property="shopBrand3" />
							</p>
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							开业时间（年月）
						</td>
						<td>
							——
						</td>
						<td>
							<html:text property="shopStart1" styleClass="Wdate" onclick="WdatePicker()" />
						</td>
						<td>
							<html:text property="shopStart2" styleClass="Wdate" onclick="WdatePicker()" />
						</td>
						<td>
							<html:text property="shopStart3" styleClass="Wdate" onclick="WdatePicker()" />
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							所在城市
						</td>
						<td>
							——
						</td>
						<td>
							<html:text property="shopCity1" />
						</td>
						<td>
							<html:text property="shopCity2" />
						</td>
						<td>
							<html:text property="shopCity3" />
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							销量(台)
						</td>
						<td>
							<html:text property="totalSalesVolume" />
						</td>
						<td>
							<html:text property="shopSalesVolume1" />
						</td>
						<td>
							<html:text property="shopSalesVolume2" />
						</td>
						<td>
							<html:text property="shopSalesVolume3" />
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							销售额(万元)
						</td>
						<td>
							<html:text property="totalSale" />
						</td>
						<td>
							<html:text property="shopSale1" />
						</td>
						<td>
							<html:text property="shopSale2" />
						</td>
						<td>
							<html:text property="shopSale3" />
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							维修台次(台)
						</td>
						<td>
							<html:text property="totalServicesVolume" />
						</td>
						<td>
							<html:text property="shopServicesVolume1" />
						</td>
						<td>
							<html:text property="shopServicesVolume2" />
						</td>
						<td>
							<html:text property="shopServicesVolume3" />
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							维修产值(万元)
						</td>
						<td>
							<html:text property="totalService" />
						</td>
						<td>
							<html:text property="shopService1" />
						</td>
						<td>
							<html:text property="shopService2" />
						</td>
						<td>
							<html:text property="shopService3" />
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							税后利润(万元)
						</td>
						<td>
							<html:text property="totalProfit" />
						</td>
						<td>
							<html:text property="shopProfit1" />
						</td>
						<td>
							<html:text property="shopProfit2" />
						</td>
						<td>
							<html:text property="shopProfit3" />
						</td>
					</tr>
				</table>
				<table class="table-layout">
					<tr class="tr-even">
						<td>
							经营的品牌有：
							<html:text property="brands" style="width:500px;" />
						</td>
					</tr>
				</table>
			</div>
			<div id="step5">
				<table class="table-layout">
					<tr class="tr-thead">
						<th>
							六、 经营者情况
						</th>
					</tr>
					<tr class="tr-even">
						<td>
							为使[上汽大众]更全面地了解未来的特许[销售商]，请填写申请公司的经营者信息表及推荐的斯柯达特许[销售商]经营者（总经理）信息表。
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							申请公司经营者信息表：
						</td>
					</tr>
				</table>
				<table class="table-layout">
					<tr class="tr-even">
						<td>
							董事长姓名：
							<html:hidden property="resumeId1" styleId="resumeId1" />
							<c:out value="${applyForm.owner1}" />
						</td>
						<td>
							性别：
							<html:radio property="gender1" value="1" />
							男&nbsp;&nbsp;
							<html:radio property="gender1" value="2" />
							女
						</td>
						<td>
							出生日期：
							<html:text property="birthYear1" style="width:60px;" />
							年&nbsp;&nbsp;
							<html:text property="birthMonth1" style="width:60px;" />
							月&nbsp;&nbsp;
							<html:text property="birthDay1" style="width:60px;" />
							日
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							最高学历：
							<html:text property="schoolAge1" />
						</td>
						<td>
							手机：
							<c:out value="${applyForm.cellphone1}" />
						</td>
						<td>
							电子邮箱：
							<c:out value="${applyForm.email1}" />
						</td>
					</tr>
					<tr class="tr-even">
						<td colspan="3">
							主要经历
						</td>
					</tr>
					<tr class="tr-odd">
						<td colspan="3" id="tdExperience1">
							<table class="table-layout" id="tableExperience1">
								<thead>
									<tr class="tr-even">
										<td>
											时间
										</td>
										<td>
											学校或工作单位（从中学开始）
										</td>
										<td>
											学位以及职务
										</td>
										<td>
											操作
										</td>
									</tr>
								</thead>
								<tbody id="tbodyExperience1"></tbody>
							</table>
							<br />
							<div class="center-opertion">
								<input type="button" value="添加" onclick="createExperience(1);" />
							</div>
						</td>
					</tr>
					<tr class="tr-even">
						<td colspan="3">
							补充说明：
						</td>
					</tr>
					<tr class="tr-odd">
						<td colspan="3">
							<html:textarea property="note1" style="width:100%" />
						</td>
					</tr>
				</table>
				<table class="table-layout">
					<tr class="tr-even">
						<td>
							总经理姓名：
							<html:hidden property="resumeId2" styleId="resumeId2" />
							<html:text property="owner2" />
						</td>
						<td>
							性别：
							<html:radio property="gender2" value="1" />
							男&nbsp;&nbsp;
							<html:radio property="gender2" value="2" />
							女
						</td>
						<td>
							出生日期：
							<html:text property="birthYear2" style="width:60px;" />
							年&nbsp;&nbsp;
							<html:text property="birthMonth2" style="width:60px;" />
							月&nbsp;&nbsp;
							<html:text property="birthDay2" style="width:60px;" />
							日
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							最高学历：
							<html:text property="schoolAge2" />
						</td>
						<td>
							手机：
							<html:text property="cellphone2" />
						</td>
						<td>
							电子邮箱：
							<html:text property="email2" />
						</td>
					</tr>
					<tr class="tr-even">
						<td colspan="3">
							主要经历
						</td>
					</tr>
					<tr class="tr-odd">
						<td colspan="3" id="tdExperience2">
							<table class="table-layout" id="tableExperience2">
								<thead>
									<tr class="tr-even">
										<td>
											时间
										</td>
										<td>
											学校或工作单位（从中学开始）
										</td>
										<td>
											学位以及职务
										</td>
										<td>
											操作
										</td>
									</tr>
								</thead>
								<tbody id="tbodyExperience2"></tbody>
							</table>
							<br />
							<div class="center-opertion">
								<input type="button" value="添加" onclick="createExperience(2);" />
							</div>
						</td>
					</tr>
					<tr class="tr-even">
						<td colspan="3">
							补充说明：
						</td>
					</tr>
					<tr class="tr-odd">
						<td colspan="3">
							<html:textarea property="note2" style="width:100%" />
						</td>
					</tr>
				</table>
				<table class="table-layout">
					<tr class="tr-odd">
						<td>
							如果本申请获得批准，未来斯柯达4S店的意向总经理信息表：
						</td>
					</tr>
				</table>
				<table class="table-layout">
					<tr class="tr-even">
						<td>
							意向总经理姓名：
							<html:hidden property="resumeId3" styleId="resumeId3" />
							<html:text property="owner3" />
						</td>
						<td>
							性别：
							<html:radio property="gender3" value="1" />
							男&nbsp;&nbsp;
							<html:radio property="gender3" value="2" />
							女
						</td>
						<td>
							出生日期：
							<html:text property="birthYear3" style="width:60px;" />
							年&nbsp;&nbsp;
							<html:text property="birthMonth3" style="width:60px;" />
							月&nbsp;&nbsp;
							<html:text property="birthDay3" style="width:60px;" />
							日
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							最高学历：
							<html:text property="schoolAge3" />
						</td>
						<td>
							手机：
							<html:text property="cellphone3" />
						</td>
						<td>
							电子邮箱：
							<html:text property="email3" />
						</td>
					</tr>
					<tr class="tr-even">
						<td colspan="3">
							主要经历
						</td>
					</tr>
					<tr class="tr-odd">
						<td colspan="3" id="tdExperience3">
							<table class="table-layout" id="tableExperience3">
								<thead>
									<tr class="tr-even">
										<td>
											时间
										</td>
										<td>
											学校或工作单位（从中学开始）
										</td>
										<td>
											学位以及职务
										</td>
										<td>
											操作
										</td>
									</tr>
								</thead>
								<tbody id="tbodyExperience3"></tbody>
							</table>
							<br />
							<div class="center-opertion">
								<input type="button" value="添加" onclick="createExperience(3);" />
							</div>
						</td>
					</tr>
					<tr class="tr-even">
						<td colspan="3">
							补充说明：
						</td>
					</tr>
					<tr class="tr-odd">
						<td colspan="3">
							<html:textarea property="note3" style="width:100%" />
						</td>
					</tr>
				</table>
			</div>
			<div id="step6">
				<table class="table-layout">
					<tr class="tr-thead">
						<th>
							七、 计划场地状况
							<html:hidden property="isExpected" />
							<html:hidden property="isCollected" />
							<html:hidden property="townId" />
						</th>
					</tr>
					<tr class="tr-even">
						<td>
							申请单位申请投资&nbsp;&nbsp;<span id="dropContainer3_0"> <html:hidden property="provinceId" /> <select id="drop3_0"></select> </span>省&nbsp;&nbsp; <span id="dropContainer3_1"> <html:hidden property="cityId" /> <select id="drop3_1"></select> </span>市&nbsp;&nbsp;
							<span id="dropContainer3_2"> <html:hidden property="districtId" /> <select id="drop3_2"></select> </span>区/县&nbsp;&nbsp;
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							拟建斯柯达4S店的场地（建议提供两处以上场地供[上汽大众]选择）：
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							场地地址：
							<html:text property="address" style="width:500px" />
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							可用土地面宽
							<html:text property="width" style="width:60px" styleId="regionWidth" onchange="calculateArea();" />
							米，可用土地径深
							<html:text property="depth" style="width:60px" styleId="regionDepth" onchange="calculateArea();" />
							米；面积：
							<html:text property="area" style="width:60px" styleId="regionArea" readonly="true" />
							平方米
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							土地来源：
							<html:radio property="sourceCode" value="1" />
							已购买&nbsp;&nbsp;
							<html:radio property="sourceCode" value="2" />
							已租赁&nbsp;&nbsp;
							<html:radio property="sourceCode" value="3" />
							意向购买&nbsp;&nbsp;
							<html:radio property="sourceCode" value="4" />
							意向租赁&nbsp;&nbsp;
							<html:radio property="sourceCode" value="5" />
							其他，请说明
							<html:text property="sourceOthers" style="width:500px" />
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							使用/租赁年限：
							<html:text property="fixedYear" />
							年
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							土地性质：
							<html:radio property="propertyCode" value="1" />
							工业用地&nbsp;&nbsp;
							<html:radio property="propertyCode" value="2" />
							商用用地&nbsp;&nbsp;
							<html:radio property="propertyCode" value="3" />
							农用用地&nbsp;&nbsp;
							<html:radio property="propertyCode" value="4" />
							其他，请说明
							<html:text property="propertyOthers" style="width:500px" />
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							建设方式：展厅部分（
							<html:radio property="isNewShowHall" value="1" />
							新建&nbsp;&nbsp;
							<html:radio property="isNewShowHall" value="0" />
							改建）、车间部分（
							<html:radio property="isNewWorkShop" value="1" />
							新建&nbsp;&nbsp;
							<html:radio property="isNewWorkShop" value="0" />
							改建）
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							如果选择新建，该场地上是否存在其它建筑物：
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							<html:radio property="hasOtherBuilding" value="1" />
							不存在&nbsp;&nbsp;
							<html:radio property="hasOtherBuilding" value="0" />
							存在，请说明&nbsp;&nbsp;
							<html:text property="otherBuilding" style="width:500px" />
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							是否有抵押或争议：
							<html:radio property="hasGuarantee" value="1" />
							是&nbsp;&nbsp;
							<html:radio property="hasGuarantee" value="0" />
							否
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							地方政策是否允许在该场地建设4S店：
							<html:radio property="isPolicyAllowed" value="1" />
							允许&nbsp;&nbsp;
							<html:radio property="isPolicyAllowed" value="0" />
							不允许
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							备选地块位置示意图：<input type="button" value="添加" onclick="createImage(1)" />
							<div id="imageInput1"></div>
							<div id="imageContainer1"></div>
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							主要汽车市场及备选场地位置的电子地图：<input type="button" value="添加" onclick="createImage(2)" />
							<div id="imageInput2"></div>
							<div id="imageContainer2"></div>
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							备选场地照片：<input type="button" value="添加" onclick="createImage(3)" />
							<div id="imageInput3"></div>
							<div id="imageContainer3"></div>
						</td>
					</tr>
				</table>
			</div>
			<div id="step7">
				<table class="table-layout">
					<tr class="tr-thead">
						<th>
							八、 投资规划
						</th>
					</tr>
					<tr class="tr-even">
						<td>
							如果本申请获得批准，本单位可动用的资金不少于
							<html:text property="investLowerLimit" />
							万元
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							其中，自有资金
							<html:text property="investOwn" />
							万元，融资
							<html:text property="investFinancing" />
							万元
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							如果本申请获得批准，未来斯柯达4S店的股本总额拟为
							<html:text property="planTotalAssets" />
							万元
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							股本结构如下：
						</td>
					</tr>
					<tr class="tr-even">
						<td id="tdShareholder3">
							<table class="table-layout" id="tableShareholder3">
								<thead>
									<tr class="tr-even">
										<td>
											出资方
										</td>
										<td>
											出资额（万元）
										</td>
										<td>
											所占比例（%）
										</td>
										<th>
											操作
										</th>
									</tr>
								</thead>
								<tbody id="tbodyShareholder3"></tbody>
							</table>
							<br />
							<div class="center-opertion">
								<input type="button" value="添加" onclick="createShareholder(3);" />
							</div>
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							如果本申请获得批准，贵公司未来三年的经营规划（从下一年度开始）：
						</td>
					</tr>
				</table>
				<table class="table-layout">
					<tr class="tr-even">
						<td>
							&nbsp;
						</td>
						<td>
							20
							<html:text property="planYear1" style="width:60px;" />
							年
						</td>
						<td>
							20
							<html:text property="planYear2" style="width:60px;" />
							年
						</td>
						<td>
							20
							<html:text property="planYear3" style="width:60px;" />
							年
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							销售台数（台）
						</td>
						<td>
							<html:text property="planSalesVolume1" />
						</td>
						<td>
							<html:text property="planSalesVolume2" />
						</td>
						<td>
							<html:text property="planSalesVolume3" />
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							修理台次（台）
						</td>
						<td>
							<html:text property="planServiceVolume1" />
						</td>
						<td>
							<html:text property="planServiceVolume2" />
						</td>
						<td>
							<html:text property="planServiceVolume3" />
						</td>
					</tr>
				</table>
			</div>
			<div id="step8">
				<table class="table-layout">
					<tr class="tr-thead">
						<th>
							九、 其它
						</th>
					</tr>
					<tr class="tr-even">
						<td>
							其它内容
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							<html:textarea property="notes" style="width:100%" />
						</td>
					</tr>
					<tr class="tr-even">
						<td>
							附件：[申请单位]必须准备如下材料：
						</td>
					</tr>
					<tr class="tr-odd">
						<td>
							1) 斯柯达特许[销售商]入网申请书
							<br />
							2) 组织机构代码证复印件
							<br />
							3) 营业执照复印件
							<br />
							4) 税务登记证复印件
							<br />
							5) 公司章程
							<br />
							6) 土地证复印件(土地自有)或土地租赁协议复印件及出租方土地证复印件（土地租赁）
							<br />
							7) 关于建设斯柯达4S店的城市规划及建筑法规的相关文件复印件
							<br />
							8) 建设用地或建筑的规划红线图及规划设计条件复印件
							<br />
							9) 申请方近三年的资产负债表（加盖公章）
							<br />
							10) 申请方近三年的损益表（加盖公章）
							<br />
							11) 申请方近三年的现金流量表（加盖公章）
							<br />
							12) 申请方近三年的年度审计报告（附审计机构资料）
							<br />
							13) 银行授信额度协议复印件
							<br />
							14) 银行资信等级证明文件复印件
							<br />
							15) 申请城市地图（原件，须标注拟建斯柯达4S店位置）
							<br />
						</td>
					</tr>
				</table>
			</div>
			<br />
			<div class="center-opertion">
				<input type="button" id="lastStep" value="上一步" onclick="toStep(-1)" />
				<input type="button" id="nextStep" value="下一步" onclick="toStep(1)" />
				<input type="button" id="justSave" value="保存" onclick="save(1)" />
				<input type="button" id="submitAll" value="提交申请" onclick="save(2)" />
				<input type="button" id="more" value="继续填写其他地区申请" onclick="save(3)" />
				<input type="button" id="cancel" value="取消" onclick="history.back();" />
			</div>
		</html:form>
		<html:form action="/skositedo/shareholder.do" method="POST" styleId="shareholderForm" style="display:none;">
			<input type="hidden" name="method" class="method" value="save" />
			<html:hidden property="id" />
			<html:hidden property="applyId" />
			<html:hidden property="typeCode" />
			<table class="table-layout">
				<tr class="tr-odd">
					<td>
						<html:text property="shareholderName" />
					</td>
					<td style="width:100px;">
						<html:text property="stake" />
					</td>
					<td style="width:100px;">
						<html:text property="percent" />
					</td>
					<td style="width:100px;">
						<input type="button" value="提交" onclick="saveShareholderForm();" />
						<input type="button" value="取消" onclick="endShareholder()" />
					</td>
				</tr>
			</table>
		</html:form>
		<html:form action="/skositedo/experience.do" method="POST" styleId="experienceForm" style="display:none;">
			<input type="hidden" name="method" class="method" value="save" />
			<html:hidden property="id" />
			<html:hidden property="resumeId" />
			<html:hidden property="typeCode" />
			<table class="table-layout">
				<tr class="tr-odd">
					<td>
						<html:text property="period" />
					</td>
					<td>
						<html:text property="corp" />
					</td>
					<td>
						<html:text property="job" />
					</td>
					<td style="width:100px;">
						<input type="button" value="提交" onclick="saveExperienceForm();" />
						<input type="button" value="取消" onclick="endExperience()" />
					</td>
				</tr>
			</table>
		</html:form>
		<html:form action="/skositedo/image.do" method="POST" styleId="imageForm" style="display:none;" target="hiddenFrame" enctype="multipart/form-data">
			<input type="hidden" name="method" class="method" value="save" />
			<html:hidden property="regionId" />
			<html:hidden property="typeCode" />
			<input type="hidden" name="method" class="method" value="save" />
			<input type="file" name="file" id="file" />
			<input type="submit" value="提交" id="uploadbutton" />
			<input type="reset" />
		</html:form>
		<iframe name="hiddenFrame" style="display:none;"></iframe>
		<script type="text/javascript">
var codeElementName = ["registerProvinceId","registerCityId","registerDistrictId"];
showDropDown(dropDownData,codeElementName,defaultOption);
var codeElementName2 = ["contactProvinceId","contactCityId","contactDistrictId"];
showDropDown(dropDownData,codeElementName2,defaultOption,"dropContainer2","drop2");
var codeElementName3 = ["provinceId","cityId","districtId"];
showDropDown(dropDownData,codeElementName3,defaultOption,"dropContainer3","drop3");

function calculateArea(){
	var w=_g("regionWidth").value;
	var d=_g("regionDepth").value;
	var a=_g("regionArea");
	if(w != null && w.length > 0
		&& d != null && d.length > 0){
		try{
			w=parseFloat(w);
			d=parseFloat(d);
			if(isNaN(w) || isNaN(d)){
				alert("请输入数字。");
				return;
			}
			a.value = Math.round(w * d * 100)/100;
		}catch(e){
			alert("请输入数字。");
		}	
	}
}
function showError(text){
	var html = "";
	html += '<div class="error">'
	html += text + '<br/>';
	html += '</div>';
	equalInnerHTML(html,function(errors){
		var e = _g("messageContainer");
		e.innerHTML = "";
		e.appendChild(errors);
	})
}
var currentApplicationId = _g("applyId").value;
var contextUrl = "<c:url value='/'/>";
//image
var currentRegionId = _g("regionId").value;
var currentImageForm = _g("imageForm");
function createImage(typeCode){
	if(currentRegionId == null || currentRegionId.length < 1)
		save(5);
	else{
		currentImageForm.regionId.value = currentRegionId;
		currentImageForm.typeCode.value = typeCode;
		var imageInput = _g("imageInput" + typeCode);
		if(imageInput){
			imageInput.appendChild(currentImageForm);
			currentImageForm.style.display = "";
		}
	}
}
function showImage(typeCode,attachPath,imageId){
	var imageContainer = _g("imageContainer"+typeCode);
	var imgHtml = "";
	imgHtml += '<div id="img_'+imageId+'"><img src="'+contextUrl + attachPath+'" />';
	imgHtml += '<input type="button" value="删除" onclick="deleteImage('+imageId+');" /></div>';
	equalInnerHTML(imgHtml,function(image){
		imageContainer.appendChild(image);
	})
	if(currentImageForm.style.display != "none"){
		currentImageForm.style.display = "none";
		_g('bd').appendChild(currentImageForm);
	}
}
function deleteImage(imageId){
	if(!confirm("确定要删除该图片吗？")) return false;
	var imageUrl = contextUrl + "skositedo/image.do?method=erase&id="+imageId
	_ajax(imageUrl,function(xhr){
		var result = _trim(xhr.responseText);
		if(result == "ok"){
			//var imageContainer = _g("imageContainer"+typeCode);
			var i = _g("img_" + imageId);
			//imageContainer.removeChild(i);
			if(i) i.style.display = "none";
		}else{
			showError(result);
		}
	})
}
function listImages(){
	if(currentRegionId == null || currentRegionId.length < 1) return false;
	var imageUrl = contextUrl + "skositedo/image.do?method=getImages&regionId="+currentRegionId;
	_ajax(imageUrl,function(xhr){
		var imageList = JSON.parse(xhr.responseText);
		if(imageList && imageList.length)
		for(var i = 0;i < imageList.length;i++){
			showImage(imageList[i].typeCode,imageList[i].attachPath,imageList[i].id);
		}
	})
}
//shareholder
var shareholderUrl = "<c:url value='shareholder.do'/>";
var currentShareholderForm = _g("shareholderForm");
currentShareholderForm.applyId.value = currentApplicationId;
function resetShareholderForm(typeCode){
	currentShareholderForm.id.value = "";
	currentShareholderForm.typeCode.value = typeCode;
	currentShareholderForm.shareholderName.value = "";
	currentShareholderForm.stake.value = "";
	currentShareholderForm.percent.value = "";
}
function getShareholderFormSerialize(){
	var params = "";
	params += "method=" + currentShareholderForm.method.value;
	params += "&applyId=" + currentShareholderForm.applyId.value;
	params += "&typeCode=" + currentShareholderForm.typeCode.value;
	params += "&id=" + currentShareholderForm.id.value;
	params += "&shareholderName=" + _e(currentShareholderForm.shareholderName.value);
	params += "&stake=" + _e(currentShareholderForm.stake.value);
	params += "&percent=" + _e(currentShareholderForm.percent.value);
	return params;
}

function saveShareholderForm(){
	_g("messageContainer").innerHTML = "";
	var typeCode = currentShareholderForm.typeCode.value;
	_ajax(shareholderUrl + "?" + getShareholderFormSerialize(),function(xhr){
		var result = _trim(xhr.responseText);
		if(result == "ok"){
			endShareholder(typeCode);
			showShareholderList(typeCode);
		}else{
			showError(result);
		}
	})
}
function createShareholder(typeCode){
	resetShareholderForm(typeCode);
	_g("tdShareholder" + typeCode).appendChild(currentShareholderForm);
	currentShareholderForm.style.display="";
}
function endShareholder(){
	var typeCode = currentShareholderForm.typeCode.value;
	resetShareholderForm(typeCode);
	currentShareholderForm.style.display = "none";
	_g('bd').appendChild(currentShareholderForm);
}
function editShareholder(shareholderId,typeCode){
	_ajax(shareholderUrl + "?method=getShareholder&id=" + shareholderId,function(xhr){
		var shareholder = JSON.parse(xhr.responseText);
		resetShareholderForm();
		_g("tdShareholder" + typeCode).appendChild(currentShareholderForm);
		currentShareholderForm.style.display="";
		currentShareholderForm.id.value = shareholder.id;
		currentShareholderForm.typeCode.value = typeCode;
		currentShareholderForm.shareholderName.value = shareholder.shareholderName;
		currentShareholderForm.stake.value = shareholder.stake;
		currentShareholderForm.percent.value = shareholder.percent;
	})
}
function deleteShareholder(shareholderId,typeCode){
	if(confirm("确定要删除该记录吗？")) 
		_ajax(shareholderUrl + "?method=erase&id="+shareholderId+"&applyId=" + currentApplicationId,function(xhr){
			showShareholderList(typeCode);
		})
}
function showShareholderList(typeCode){
	_ajax(shareholderUrl + "?method=getShareholderList&applyId=" + currentApplicationId + "&typeCode=" + typeCode,function(xhr){
		var shareholderList = JSON.parse(xhr.responseText);
		var listHtml = '<table><tbody id="tbodyShareholder'+typeCode+'">';
		if(shareholderList && shareholderList.length)
		for(var i = 0;i < shareholderList.length;i++){
			listHtml += '<tr class="'+(i%2 == 0 ? 'tr-odd' : 'tr-even')+'">';
			listHtml += '<td>'+shareholderList[i].shareholderName+'</td>';
			listHtml += '<td>'+shareholderList[i].stake+'</td>';
			listHtml += '<td>'+shareholderList[i].percent+'</td>';
			listHtml += '<td>';
			listHtml += '<a href="javascript:void(0);" onclick="javascript:editShareholder('+shareholderList[i].id+','+typeCode+');">修改</a>&nbsp;';
			listHtml += '<a href="javascript:void(0)" onclick="javascript:deleteShareholder('+shareholderList[i].id+','+typeCode+')">删除</a>&nbsp;';
			listHtml += '</td>';
			listHtml += '</tr>';
		}
		listHtml += '</tbody></table>';
		equalInnerHTML(listHtml,function(tbody){
			var t = _g("tableShareholder" + typeCode);
			var tb =  _g("tbodyShareholder" + typeCode);
			t.removeChild(tb);
			t.appendChild(tbody);
		})
	})
}

//experience
var experienceUrl = "<c:url value='experience.do'/>";
var currentExperienceForm = _g("experienceForm");
function resetExperienceForm(typeCode){
	currentExperienceForm.id.value = "";
	currentExperienceForm.resumeId.value = _g("resumeId" + typeCode).value;
	currentExperienceForm.typeCode.value = typeCode;
	currentExperienceForm.period.value = "";
	currentExperienceForm.corp.value = "";
	currentExperienceForm.job.value = "";
}
function getExperienceFormSerialize(){
	var params = "";
	params += "method=" + currentExperienceForm.method.value;
	params += "&id=" + currentExperienceForm.id.value;
	params += "&resumeId=" + currentExperienceForm.resumeId.value;
	params += "&period=" + _e(currentExperienceForm.period.value);
	params += "&corp=" + _e(currentExperienceForm.corp.value);
	params += "&job=" + _e(currentExperienceForm.job.value);
	return params;
}

function saveExperienceForm(){
	_g("messageContainer").innerHTML = "";
	var typeCode = currentExperienceForm.typeCode.value;
	_ajax(experienceUrl + "?" + getExperienceFormSerialize(),function(xhr){
		var result = _trim(xhr.responseText);
		if(result == "ok"){
			endExperience(typeCode);
			showExperienceList(typeCode);
		}else{
			showError(result);
		}
	})
}
function createExperience(typeCode){
	resetExperienceForm(typeCode);
	_g("tdExperience" + typeCode).appendChild(currentExperienceForm);
	currentExperienceForm.style.display="";
}
function endExperience(){
	var typeCode = currentExperienceForm.typeCode.value;
	resetExperienceForm(typeCode);
	currentExperienceForm.style.display = "none";
	_g('bd').appendChild(currentExperienceForm);
}
function editExperience(experienceId,typeCode){
	_ajax(experienceUrl + "?method=getExperience&id=" + experienceId,function(xhr){
		var experience = JSON.parse(xhr.responseText);
		resetExperienceForm(typeCode);
		_g("tdExperience" + typeCode).appendChild(currentExperienceForm);
		currentExperienceForm.style.display="";
		currentExperienceForm.id.value = experience.id;
		currentExperienceForm.resumeId.value = experience.resumeId;
		currentExperienceForm.period.value = experience.period;
		currentExperienceForm.corp.value = experience.corp;
		currentExperienceForm.job.value = experience.job;
	})
}
function deleteExperience(experienceId,typeCode){
	if(confirm("确定要删除该记录吗？")) 
		_ajax(experienceUrl + "?method=erase&id="+experienceId,function(xhr){
			showExperienceList(typeCode);
		})
}
function showExperienceList(typeCode){
	var currentResumeId = _g("resumeId" + typeCode).value;
	_ajax(experienceUrl + "?method=getExperienceList&resumeId=" + currentResumeId,function(xhr){
		var experienceList = JSON.parse(xhr.responseText);
		var listHtml = '<table><tbody id="tbodyExperience'+typeCode+'">';
		if(experienceList && experienceList.length)
		for(var i = 0;i < experienceList.length;i++){
			listHtml += '<tr class="'+(i%2 == 0 ? 'tr-odd' : 'tr-even')+'">';
			listHtml += '<td>'+experienceList[i].period+'</td>';
			listHtml += '<td>'+experienceList[i].corp+'</td>';
			listHtml += '<td>'+experienceList[i].job+'</td>';
			listHtml += '<td>';
			listHtml += '<a href="javascript:void(0);" onclick="javascript:editExperience('+experienceList[i].id+','+typeCode+');">修改</a>&nbsp;';
			listHtml += '<a href="javascript:void(0)" onclick="javascript:deleteExperience('+experienceList[i].id+','+typeCode+')">删除</a>&nbsp;';
			listHtml += '</td>';
			listHtml += '</tr>';
		}
		listHtml += '</tbody></table>';
		equalInnerHTML(listHtml,function(tbody){
			var t = _g("tableExperience" + typeCode);
			var tb =  _g("tbodyExperience" + typeCode);
			t.removeChild(tb);
			t.appendChild(tbody);
		})
	})
}


//apply
function save(num){
	if(num == 1){
		_g("flag").value="save";
	}
	if(num == 2){
		_g("flag").value="submit";
	}
	if(num == 3){
		_g("flag").value="more";
	}
	if(num == 4){
		_g("flag").value="next";
	}
	if(num == 5){
		_g("flag").value="image";
	}
	submitMethod('save','applicationForm');
}
function initStep(num){
	//init all
	for(var i = 1;i<9;i++){
		var e = _g("step" + i);
		if(e)e.style.display = "none";
	}
	var btnLastStep = _g("lastStep");
	var btnNextStep = _g("nextStep");
	var btnSubmit = _g("submitAll");
	var btnMore = _g("more");
	btnLastStep.style.display = "none";
	btnNextStep.style.display = "none";
	btnSubmit.style.display = "none";
	btnMore.style.display = "none";
	
	//分步显示
	var currentStep = _g("step").value;
	currentStep = (currentStep == null || currentStep.length<1) ? 1 : parseInt(currentStep);
	var toStep = currentStep + num;
	if(toStep < 1) toStep = 1;
	if(toStep > 8) toStep = 8;
	_g("step").value = toStep;
	_g("step" + toStep).style.display = "";
	switch(toStep){
		case 1:
			btnNextStep.style.display = "";
			break;
		case 2:
		case 3:
		case 4:
		case 5:
		case 6:
		case 7:
			btnLastStep.style.display = "";
			btnNextStep.style.display = "";
			break;
		case 8:
			btnLastStep.style.display = "";
			btnSubmit.style.display = "";
			btnMore.style.display = "";
			break;
		default:
			break;
	}
	
}
function toStep(num){
	initStep(num);
	//至少保存一次
	if(_g("step").value > 1 
		&& (currentApplicationId == null || currentApplicationId.length < 1))
		save(4);
}
initStep(0);
showShareholderList(1);
showShareholderList(2);
showShareholderList(3);
showExperienceList(1);
showExperienceList(2);
showExperienceList(3);
listImages();
		</script>
	</body>
</html>
